package com.tourism.entity.common;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.util.Date;

/**
 * @Description
 * @Author z
 * @Date 2021-05-01 9:42
 */
@Data
public class IntBasicEntity {
    @JsonSerialize(using = ToStringSerializer.class)
    private Integer id;

    /**
     * 创建时间
     */
    private Date createTime;

    public void init() {
        createTime = new Date();
    }
}
